
// 转换时间
export function formDate(date, flag = '-') {
  let newDate = new Date(date)
  let year = newDate.getFullYear()
  let month = newDate.getMonth()
  let day = newDate.getDay()
  if (month < 10) {
    mount + '0'
  }
  if (day < 10) day + '0'
  return year + flag + month + flag + day
}
